﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace myMap
{
    public class RoadSection
    {


        private Intersection startInter;    // 开始inter
        private Intersection endInter;      // 结束inter

        public Intersection GetStartInter()
        {
            return startInter;
        }

        public Intersection GetEndInter()
        {
            return endInter;
        }



        // 道路运行时间
        private double travelTime;
        public double TravelTime
        {
            get { return travelTime; }
            set { travelTime = value; }
        }

        // 道路上的volume 用来升级tij
        private double volume;
        public double Volume
        {
            get { return volume; }
            set { volume = value; }
        }


        private String name;
        // 道路名字
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        // 道路长度
        private double distance;

        // 车辆最快行驶速度
        public double maximumSpeed;



        /// <summary>
        /// 设置开始点.
        /// </summary>
        /// <param name="interStart"></param>
        public void SetStart(Intersection interStart)
        {
            this.startInter = interStart;
        }

        /// <summary>
        /// 设置结束点.
        /// </summary>
        /// <param name="interStart"></param>
        public void SetEnd(Intersection interEnd)
        {
            this.endInter = interEnd;
        }

    }
}
